import { createSSRApp } from 'vue';
import { createPinia } from 'pinia';
import App from "./App.vue";
import CONFIG from "@/config.mjs";
import tool from "@/utils/index";
import mpWeixin from "@/utils/mixin/mpWeixin";
// unocss
import 'uno.css';

export function createApp() {
  const app = createSSRApp(App);
  app.use(createPinia());
  app.mixin(mpWeixin);
  app.config.globalProperties.$TOOL = tool;
  app.config.globalProperties.$CONFIG = CONFIG;
  return {
    app,
  };
}
